/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_clientuser")
//@NamedQueries({@NamedQuery(name = "TClientuser.findAll", query = "SELECT t FROM TClientuser t"), @NamedQuery(name = "TClientuser.findByClientuserid", query = "SELECT t FROM TClientuser t WHERE t.clientuserid = :clientuserid"), @NamedQuery(name = "TClientuser.findByUsername", query = "SELECT t FROM TClientuser t WHERE t.username = :username"), @NamedQuery(name = "TClientuser.findByPassword", query = "SELECT t FROM TClientuser t WHERE t.password = :password"), @NamedQuery(name = "TClientuser.findByMsisdn", query = "SELECT t FROM TClientuser t WHERE t.msisdn = :msisdn"), @NamedQuery(name = "TClientuser.findByRegistereddate", query = "SELECT t FROM TClientuser t WHERE t.registereddate = :registereddate")})
public class TClientuser implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "clientuserid")
    private Integer clientuserid;
    @Column(name = "username")
    private String username;
    @Column(name = "password")
    private String password;
    @Column(name = "msisdn")
    private String msisdn;
    @Basic(optional = false)
    @Column(name = "registereddate")
    @Temporal(TemporalType.TIMESTAMP)
    private Date registereddate;

    public TClientuser() {
    }

    public TClientuser(Integer clientuserid) {
        this.clientuserid = clientuserid;
    }

    public TClientuser(Integer clientuserid, Date registereddate) {
        this.clientuserid = clientuserid;
        this.registereddate = registereddate;
    }

    public Integer getClientuserid() {
        return clientuserid;
    }

    public void setClientuserid(Integer clientuserid) {
        this.clientuserid = clientuserid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMsisdn() {
        return msisdn;
    }

    public void setMsisdn(String msisdn) {
        this.msisdn = msisdn;
    }

    public Date getRegistereddate() {
        return registereddate;
    }

    public void setRegistereddate(Date registereddate) {
        this.registereddate = registereddate;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (clientuserid != null ? clientuserid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TClientuser)) {
            return false;
        }
        TClientuser other = (TClientuser) object;
        if ((this.clientuserid == null && other.clientuserid != null) || (this.clientuserid != null && !this.clientuserid.equals(other.clientuserid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TClientuser[clientuserid=" + clientuserid + "]";
    }

}
